<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑菜单连接及权限</title>
<body class="withvernav">
<div class="bodywrapper">
 {{include file='/public/leftmenu.tpl'}}
    <div class="centercontent">
    
        <div class="pageheader notab">
            <h1 class="pagetitle">增加操作菜单</h1>
            <span class="pagedesc"></span>
            
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper">
        	
        	<div id="basicform" class="subcontent">
           
					<form class="stdform stdform2" method="post" action="/management/ajaxbutton">
                   
                    	<p>
                        	<label>名称 *</label>
                            <span class="field"><input type="text" name="name" id="name" class="longinput" /></span>
                        </p>
                        
                        <p>
                        	<label>连接</label>
                            <span class="field"><input type="text" name="tlinks" id="tlinks" class="longinput" /></span>
                        </p>
                        <p>
                        	<label>关键字</label>
                            <span class="field"><input type="text" name="power" id="power" class="longinput" /></span>
                        </p>
                        
                        <p>
                        	<label>说明文档</label>
                            <span class="field"><textarea cols="80" rows="5" name="remark" id="remark" class="longinput"></textarea></span>
                        </p>
                        
                        <p>
                        	<label>所属</label>
                            <span class="field"><select name="sort_id" id="sort_id">
                            	<option value="">Choose One</option>
                                <option value="0">一级目录</option>
                                {{foreach from=$menudblist item=res key=key}}
                                <option value="{{$res.id}}">{{$res.rankimg}}{{$res.value_txt}}</option>
                                	{{if $res.rankdates}}
										 {{foreach from=$res.rankdates key=key item=o}}
										 	<option value="{{$o.id}}">{{$o.rankimg}}{{$o.value_txt}}</option>
                                            {{if $o.rankthree}}
                                                 {{foreach from=$o.rankthree key=key item=li}}
                                                    <option value="{{$li.id}}">{{$li.rankimg}}{{$li.value_txt}}</option>
                                                 {{/foreach}}
											 {{/if}}
										 {{/foreach}}
									 {{/if}}
                                {{/foreach}}
                                
                            </select></span>
                        </p>
                        <p>
                        	<label>排序*</label>
                            <span class="field"><input type="text" name="sort" id="sort" class="width100" /></span>
                        </p>
                        <p>
                            <label>是否显示链接</label>
                            <span class="field">
                            	<input type="radio" name="isshow" id="isshow" value="0" /> 是 （做为菜单项显示在左侧）
                            	<input type="radio" name="isshow" id="isshow" checked="checked" value="1" /> 否 （做为功能项）
                            </span>
                        </p>
                        <p class="stdformbutton">
                        	<button type="button" class="submit radius2" onClick="onsavelink()">确定增加</button>&nbsp;&nbsp;&nbsp;
                            <button type="button" class="submit radius2" onClick="javascript:history.back();"  />返回</button>
                            <button type="button" class="submit radius2" onClick="oncechelink()"  />生成缓存文件</button>
                             <input type="hidden" id="id" name="id" value="0">
                        </p>
                    </form>
					
                    <br />

            </div><!--subcontent-->
            
        
        </div><!--contentwrapper-->
        
	</div><!-- centercontent -->
    
    
</div><!--bodywrapper-->

</body>
</html>
